<?php

class ProductList extends CWidget {

    public $models;

    public function run() {
        $baseUrl = Yii::app()->request->baseUrl . '/';
        $sql = 'SELECT * FROM mp_prices WHERE price_active=1';
        $prices = Yii::app()->db->createCommand($sql)->queryAll();
        $this->render('list', array('baseUrl' => $baseUrl, 'models' => $this->models, 'prices' => $prices));
    }

}
